package com.mdd.common.service;


import com.alibaba.fastjson2.JSONArray;
import com.mdd.common.core.AjaxResult;
import com.mdd.common.entity.BusinessFile;
import com.mdd.common.validate.business.BusinessApplyValidate;
import com.mdd.common.vo.business.BusinessDetailVo;
import com.mdd.common.vo.business.BusinessSubmitResultVo;
import com.mdd.common.vo.business.VersionVo;

import java.util.List;

/**
 * 用户端商户 业务
 */
public interface BusinessAppService {

    /**
     * 商家分类
     *
     * @return
     */
    JSONArray list();

    /**
     * 获取版本套餐
     *
     * @return
     */
    List<VersionVo> getVersionList();


    /**
     * 入驻提交
     *
     * @param applyValidate
     * @return
     */
    BusinessSubmitResultVo submitBusiness(BusinessApplyValidate applyValidate);


    /**
     * 查询商户详情
     *
     * @param id
     * @param userId
     * @return
     */
    BusinessDetailVo detail(Integer id, Integer userId);


    /**
     * 查询商家相册
     *
     * @param id
     * @return
     */
    List<BusinessFile> getBusinessFileList(Integer id);

    /**
     * 商户列表 配置
     *
     * @return
     */
    AjaxResult<Object> getStoreListConfig();

}
